package com.cqnu.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cqnu.dao.TeacherDao;
import com.cqnu.entity.Teacher;
import com.cqnu.service.ITeacherService;
@Service("teacherService")
public class TeacherServiceImpl extends BaseServiceImpl implements ITeacherService{

	@Resource
	private TeacherDao teacherDao;
	
	@Override
	public List<Teacher> find(Map<String, Object> map) {
		return teacherDao.find(map);
	}

	@Override
	public Long getTotal(Map<String, Object> map) {
		return teacherDao.getTotal(map);
	}
	
	@Override
	public int update(Teacher obj) {
		return teacherDao.update(obj);
	}

	@Override
	public int add(Teacher obj) {
		return teacherDao.add(obj);
	}

	@Override
	public int delete(Integer id) {
		return teacherDao.delete(id);
	}

	@Override
	public Teacher login(Teacher tea) {
		return teacherDao.login(tea);
	}

	@Override
	public Teacher getById(Integer id) {
		// TODO Auto-generated method stub
		return teacherDao.getById(id);
	}

}
